<%@ page import="com.biz.utils.ConfigUtil" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
		 pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE html>
<html class="no-js">
<head>
<meta charset="UTF-8">
<title>社区动态</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="format-detection" content="telephone=no">
<meta name="renderer" content="webkit">
<meta http-equiv="Cache-Control" content="no-siteapp" />
<jsp:include page="/jsp/inc.jsp"></jsp:include>
</head>
<body>
<div class="topBT">
	<img src="<%=basePath%>resources/image/BTimg.png" alt="" class="" width="100%;">
</div>
<ul class="newslist">
	<c:choose>
		<c:when test="${not empty listD}">
			<c:forEach items="${listD}" var="obj" varStatus="vs">
				<li onclick="toDetail('${obj.id}');">
					<img src="<%=ConfigUtil.get("OSSURL")%>${obj.picture}" alt="" class="newimg">
					<div class="newsall">
						<div class="newstitle">${obj.title}</div>
						<%--<div class="newstxt">${obj.description}</div>--%>
						<div class="newstime">${obj.creatTime}</div>
					</div>
				</li>
			</c:forEach>
		</c:when>
		<c:otherwise>
			<div class="notxt">
				<img src="<%=basePath%>resources/image/icon-nullnull.png" alt="" class="notxtImg">
				<div class="nultxttip">暂无动态</div>
			</div>
		</c:otherwise>
	</c:choose>
</ul>

<script>
    function toDetail(id){
        window.location.href='${pageContext.request.contextPath}/community/toDetail.ac?detailId='+id;
	}
</script>
</body>
</html>
